var test = 1

$(function () {
  $('#menubtn').click(function(){
    $("#navBar").css({
      backgroundColor:"white",
    })
  })
})

function mHttp() {
    var w_time = $('#w_time').val()
    var des_name = $('#des_name').val()
    var b_job = $('#b_job').val()
    var workload = $('#workload').val()
    var b_question = $('#b_question').val()
    var b_solution = $('#b_solution').val()
    var b_feedback = $('#b_feedback').val()
    var b_script = $("#b_script")[0].files[0];
    var formData = new FormData()

    formData.append('w_time',w_time)
    formData.append('des_name',des_name)
    formData.append('b_job',b_job)
    formData.append('workload',workload)
    formData.append('b_question',b_question)
    formData.append('b_solution',b_solution)
    formData.append('b_feedback',b_feedback)
    formData.append('b_script',b_script)

    $.ajax({
        url:host + '/operationwrite',
        type:"post",
        data:formData,
        cache: false, //上传文件不需要缓存
        processData: false, // 告诉jQuery不要去处理发送的数据
        contentType: false, // 告诉jQuery不要去设置Content-Type请求头
        success:function(data) {
          console.log(data);
        },
        error: function(data) {    
          console.log(data)    
      } 
      })
      
    
  }